/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;
import modelo.SensorRegistro;
import dao.generic.GenericDAO;
/**
 *
 * @author Administrador
 */
public class SensorRegistroDAO extends GenericDAO{
    public SensorRegistro getSensorRegisrobyId(int idSensorRegistro){
        SensorRegistro sr=null;
        try{
            iniciarOperacion();
            sr = (SensorRegistro) sesion.get(SensorRegistro.class, idSensorRegistro);
            
        }finally{
            sesion.close();
        }
        return sr;   
    }
    
}
